<?php
/**
 * Created by JetBrains PhpStorm.
 * User: mokhov
 * Date: 19.03.13
 * Time: 17:44
 * To change this template use File | Settings | File Templates.
 */

class Engine_Grid_Column {

    protected $id;
    protected $name;
    protected $field;
    protected $type;

    public function __construct(array $params) {
        if (is_array($params)) {
            foreach ($params as $key=>$param) {
                $this->$key = $param;
            }
        } else {
            throw new Exception('Error create column. Params must be array',404);
        }
    }

    public function getName()
    {
        return $this->name;
    }

    public function getType()
    {
        return $this->type;
    }

    public function getField()
    {
        return $this->field;
    }



}